-- GENERATED SPELL FOR [Razormaw Matriarch] --


function spell0_1140(pUnit, Event) --@Rend Flesh,n/a--
pUnit:FullCastSpellOnTarget(3147,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1140', 12000, 1)
end

function Sorts_1140(pUnit, Event)
local choix_sorts_1140 = math.random(0, 0)
if choix_sorts_1140 == 0 then
pUnit:RegisterEvent('spell0_1140', 1, 1)
end
end

function mob1140_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1140', math.random(1500, 3000), 1)
end

function mob1140_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1140_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1140_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1140, 1, 'mob1140_Action')
RegisterUnitEvent(1140, 2, 'mob1140_Leave')
RegisterUnitEvent(1140, 3, 'mob1140_Kill')
RegisterUnitEvent(1140, 4, 'mob1140_Die')
